<template>
  <div class="home">
    <vHeader></vHeader>
    <section class="bd" v-show="!showPanelPlayer">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </section>
    <!-- start 底部播放bar条 -->
    <v-player v-show="!showPanelPlayer"></v-player>
    <!-- end 底部播放bar条 -->
    <!-- start 底部播放bar条 -->
    <v-panel-play v-show="showPanelPlayer"></v-panel-play>
    <!-- end 底部播放bar条 -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import vHeader from '../components/common/header'
import vPlayer from '../components/common/player'
import vPanelPlay from '../components/common/panel-play'
export default {
  name: 'home',
  data() {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  computed: {
    ...mapGetters(['showPanelPlayer'])
  },
  mounted() {
  },
  components: {
    vHeader, vPlayer,vPanelPlay
  },
  methods: {

  }
}
</script>

<style lang="stylus"  scoped>
  .bd
    width: 100%;
    padding-top: 3rem;
</style>
